/*
 * @Author: hukai huzhengen@gmail.com
 * @Date: 2025-06-23 16:04:32
 * @LastEditors: hukai huzhengen@gmail.com
 * @LastEditTime: 2025-09-19 15:17:03
 * @FilePath: \新建文件夹 (8)\foodOrderingSystem-ui\src\api\ingredient.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";
// 菜谱提交
export function foodComboRecipeCopy(data) {
  return request({
    url: `/food/combo/recipe/copy`,
    method: "post",
    data: data,
  });
}
// 菜谱导出 当前
export function exportMenu(data) {
  return request({
    url: `/food/combo/export/menu`,
    method: "post",
    data: data,
  });
}

export function exportQinsMenu(data) {
  return request({
    url: `/food/combo/export/light/menu`,
    method: "post",
    data: data,
  });
}

// 菜谱提交审核
export function getTableComboEditRecipe(data) {
  return request({
    url: `/food/combo/editRecipe`,
    method: "put",
    data: data,
  });
}

// 菜谱查询审核状态
export function getTableComboRecipeType(data) {
  return request({
    url: "/food/combo/recipe/type ",
    method: "get",
    params: data,
  });
}

// 菜谱管理左侧tab

export function getListTableComboRecipeHistory(data) {
  return request({
    url: "/food/combo/recipe/history",
    method: "get",
    params: data,
  });
}
export function getListTableComboRecipeList(data) {
  return request({
    url: "/food/combo/recipeList",
    method: "get",
    params: data,
  });
}
export function getListTableComboResipe(data) {
  return request({
    url: "/food/combo/recipe",
    method: "get",
    params: data,
  });
}

// 查询
export function getList(data) {
  return request({
    url: "/food/combo/list",
    method: "get",
    params: data,
  });
}

export function getListWechart(data) {
  return request({
    url: "/wx/food/combo/date/combo",
    method: "get",
    params: data,
  });
}

// 删除
export function deleteCombo(ingredientsIds) {
  return request({
    url: "/food/combo/" + ingredientsIds,
    method: "DELETE",
  });
}

// 修改
export function ComboUpdate(data) {
  return request({
    url: "/food/combo",
    method: "put",
    data: data,
  });
}

// /food/combo/approval/

export function ComboDelPron(data) {
  return request({
    url: "/food/combo/approval/" + data,
    method: "DELETE",
  });
}

export function ComboUpdates(data) {
  return request({
    url: "/food/combo/approval",
    method: "put",
    data: data,
  });
}
// 新增
export function ComboAdd(data) {
  return request({
    url: "/food/combo",
    method: "post",
    data: data,
  });
}

// 详情
export function ComboParticulars(data) {
  return request({
    url: "/food/combo/" + data,
    method: "get",
  });
}
